<div class="span4">
    <div class="well sidebar-nav">
        <ul class="nav nav-list side_bar">
            <li class="nav-header s_top_b">SẢN PHẨM</li>
            <?php
                foreach($categories as $category):
                    $uri = '/' . url_title($category->category, 'dash', TRUE) . '-c' . $category->id;
            ?>
            <li>
                <a href="<?php echo $uri;?>">
                    <span>
                        <img src="/images/categories/<?php echo $category->url_images;?>" class="img-polaroid" style="padding-right: 4px;">
                    </span>  
                    <?php echo $category->category;?>
                </a>
            </li>
            <?php endforeach;?>
        </ul>
    </div>
</div>